﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Library
{
    public class User
    {
        private static string _permission = "";
        public static string permission
        {
            set { _permission += "key" + value + "key" + "^"; }
            get
            {
                return _permission;
            }
        }

        public static bool CheckPermission(string ClassName)
        {   
            string calssname = "key" + ClassName + "key";
            if(permission.Contains(calssname))
            {
                return true;
            }
            return false;
        }

        private static string _userName = "Administrator";
        public static string UserName
        {
            set { _userName = value; }
            get { return _userName; }
        }
    }
}
